//
//  MainScreenViewController.m
//  PokerHandUp
//
//  Created by psvn047 on 6/7/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "MainScreenViewController.h"
#import "AppDelegate.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////
@interface MainScreenViewController ()

@end
///////////////////////////////////////////////////////////////////////////////////////////////////////

@implementation MainScreenViewController
-(IBAction) tournamentHanlder:(id)sender
{
    [[AppDelegate sharedController] showTournamentScreen];
}
-(IBAction) playNowHanlder:(id)sender
{
    [[AppDelegate sharedController] showGameScreen];
}
-(IBAction) chipHanlder:(id)sender
{
     [[AppDelegate sharedController] showChipPopup];
}
-(IBAction) helpHanlder:(id)sender
{
     [[AppDelegate sharedController] showHelpPopup];
}
-(IBAction) leaderboardHanlder:(id)sender
{
     [[AppDelegate sharedController] showLeaderboardPopup];
}
-(IBAction) settingHanlder:(id)sender
{
     [[AppDelegate sharedController] showSettingPopup];
}
-(IBAction) logOutHanlder:(id)sender
{
    [[AppDelegate sharedController] showSignInScreen];
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
